package com.loyal.camerax.annotation

import androidx.annotation.IntDef
import androidx.annotation.StringDef
import androidx.camera.core.ImageCapture
import androidx.camera.core.TorchState

@StringDef(TorchFlashState.OFF, TorchFlashState.ON, TorchFlashState.AUTO, TorchFlashState.TORCH )
@Retention(AnnotationRetention.SOURCE)
annotation

class TorchFlashState {
    companion object {
        const val OFF = "off"
        const val ON = "on"
        const val AUTO = "auto"
        const val TORCH = "torch"
    }
}

/*@IntDef(TorchFlashState.OFF, TorchFlashState.ON, TorchFlashState.AUTO, TorchFlashState.TORCH)
@Retention(AnnotationRetention.SOURCE)
annotation class TorchFlashState {
    companion object {
        const val OFF =
            TorchState.OFF - ImageCapture.FLASH_MODE_OFF//-2
        const val AUTO = TorchState.OFF - ImageCapture.FLASH_MODE_AUTO//0
        const val ON =
            TorchState.OFF - ImageCapture.FLASH_MODE_ON//-1
        const val TORCH = TorchState.ON - ImageCapture.FLASH_MODE_AUTO//1
    }
}*/
